<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        var data = [{
            "value": "4138014537_1",
            "label": "集团总部",
            "id": "1",
            "pid": "",
            "disabled": true
        }, {
            "value": "4138014537_1022",
            "label": "城市-亳州市",
            "id": "1022",
            "pid": "1355",
            "disabled": false
        }, {
            "value": "4138014537_1230",
            "label": "有问题需删除-宣城市",
            "id": "1230",
            "pid": "1022",
            "disabled": false
        }, {
            "value": "4138014537_1231",
            "label": "有问题需删除-池州市",
            "id": "1231",
            "pid": "1022",
            "disabled": false
        }, {
            "value": "4138014537_1232",
            "label": "有问题需删除-亳州市",
            "id": "1232",
            "pid": "1022",
            "disabled": false
        }, {
            "value": "4138014537_1233",
            "label": "有问题需删除-六安市",
            "id": "1233",
            "pid": "1022",
            "disabled": false
        }, {
            "value": "4138014537_1234",
            "label": "有问题需删除-宿州市",
            "id": "1234",
            "pid": "1022",
            "disabled": false
        }, {
            "value": "4138014537_1235",
            "label": "有问题需删除-阜阳市",
            "id": "1235",
            "pid": "1022",
            "disabled": false
        }, {
            "value": "4138014537_1236",
            "label": "有问题需删除-滁州市",
            "id": "1236",
            "pid": "1022",
            "disabled": false
        }, {
            "value": "4138014537_1237",
            "label": "有问题需删除-黄山市",
            "id": "1237",
            "pid": "1022",
            "disabled": false
        }, {
            "value": "4138014537_1238",
            "label": "有问题需删除-安庆市",
            "id": "1238",
            "pid": "1022",
            "disabled": false
        }, {
            "value": "4138014537_1239",
            "label": "有问题需删除-铜陵市",
            "id": "1239",
            "pid": "1022",
            "disabled": false
        }, {
            "value": "4138014537_1240",
            "label": "有问题需删除-淮北市",
            "id": "1240",
            "pid": "1022",
            "disabled": false
        }, {
            "value": "4138014537_1241",
            "label": "有问题需删除-马鞍山市",
            "id": "1241",
            "pid": "1022",
            "disabled": false
        }, {
            "value": "4138014537_1242",
            "label": "有问题需删除-淮南市",
            "id": "1242",
            "pid": "1022",
            "disabled": false
        }, {
            "value": "4138014537_1243",
            "label": "有问题需删除-蚌埠市",
            "id": "1243",
            "pid": "1022",
            "disabled": false
        }, {
            "value": "4138014537_1244",
            "label": "有问题需删除-芜湖市",
            "id": "1244",
            "pid": "1022",
            "disabled": false
        }, {
            "value": "4138014537_1245",
            "label": "有问题需删除-合肥市",
            "id": "1245",
            "pid": "1022",
            "disabled": false
        }, {
            "value": "4138014537_1352",
            "label": "事业部-液态奶",
            "id": "1352",
            "pid": "1",
            "disabled": false
        }, {
            "value": "4138014537_1353",
            "label": "营销总部-安徽",
            "id": "1353",
            "pid": "1352",
            "disabled": false
        }, {
            "value": "4138014537_1354",
            "label": "销售区域-阜阳",
            "id": "1354",
            "pid": "1353",
            "disabled": false
        }, {
            "value": "4138014537_1355",
            "label": "城市群-亳州市区",
            "id": "1355",
            "pid": "1354",
            "disabled": false
        }, {
            "value": "4138014537_2004",
            "label": "营销总部-粤海A",
            "id": "2004",
            "pid": "1352",
            "disabled": false
        }, {
            "value": "4138014537_2005",
            "label": "海南A",
            "id": "2005",
            "pid": "2004",
            "disabled": false
        }, {
            "value": "4138014537_2006",
            "label": "海口市区A",
            "id": "2006",
            "pid": "2005",
            "disabled": false
        }, {
            "value": "4138014537_2007",
            "label": "海口市A",
            "id": "2007",
            "pid": "2006",
            "disabled": false
        }, {
            "value": "4138014537_2010",
            "label": "营销总部-江苏A",
            "id": "2010",
            "pid": "2016",
            "disabled": true
        }, {
            "value": "4138014537_2011",
            "label": "徐州A",
            "id": "2011",
            "pid": "2010",
            "disabled": true
        }, {
            "value": "4138014537_2012",
            "label": "徐州特渠A",
            "id": "2012",
            "pid": "2011",
            "disabled": true
        }, {
            "value": "4138014537_2013",
            "label": "徐州市A",
            "id": "2013",
            "pid": "2012",
            "disabled": true
        }, {
            "value": "4138014537_2016",
            "label": "事业部-酸奶",
            "id": "2016",
            "pid": "1",
            "disabled": true
        }, {
            "value": "4138014537_2017",
            "label": "事业部-奶粉",
            "id": "2017",
            "pid": "1",
            "disabled": true
        }, {
            "value": "4138014537_2018",
            "label": "营销总部-晋冀蒙A",
            "id": "2018",
            "pid": "1352",
            "disabled": false
        }, {
            "value": "4138014537_2019",
            "label": "销售区域-合肥",
            "id": "2019",
            "pid": "1353",
            "disabled": false
        }, {
            "value": "4138014537_2020",
            "label": "城市群-合肥传统",
            "id": "2020",
            "pid": "2019",
            "disabled": false
        }, {
            "value": "4138014537_2021",
            "label": "合肥市",
            "id": "2021",
            "pid": "2020",
            "disabled": false
        }, {
            "value": "4138014537_2022",
            "label": "销售区域-石家庄",
            "id": "2022",
            "pid": "2018",
            "disabled": false
        }, {
            "value": "4138014537_2023",
            "label": "城市群-石家庄市区",
            "id": "2023",
            "pid": "2022",
            "disabled": false
        }, {
            "value": "4138014537_2024",
            "label": "城市群-邢台市区",
            "id": "2024",
            "pid": "2022",
            "disabled": false
        }, {
            "value": "4138014537_2025",
            "label": "城市-石家庄市",
            "id": "2025",
            "pid": "2023",
            "disabled": false
        }, {
            "value": "4138014537_2026",
            "label": "城市-邢台市",
            "id": "2026",
            "pid": "2024",
            "disabled": false
        }, {
            "value": "4138014537_2027",
            "label": "京津大区",
            "id": "2027",
            "pid": "2016",
            "disabled": true
        }, {
            "value": "4138014537_2028",
            "label": "北京二区",
            "id": "2028",
            "pid": "2027",
            "disabled": true
        }, {
            "value": "4138014537_2029",
            "label": "天津区域",
            "id": "2029",
            "pid": "2027",
            "disabled": true
        }, {
            "value": "4138014537_2030",
            "label": "西南大区",
            "id": "2030",
            "pid": "2016",
            "disabled": true
        }, {
            "value": "4138014537_2031",
            "label": "贵州区域",
            "id": "2031",
            "pid": "2030",
            "disabled": true
        }, {
            "value": "4138014537_2032",
            "label": "贵阳",
            "id": "2032",
            "pid": "2031",
            "disabled": true
        }, {
            "value": "4138014537_2033",
            "label": "四部",
            "id": "2033",
            "pid": "2028",
            "disabled": true
        }, {
            "value": "4138014537_2034",
            "label": "武清",
            "id": "2034",
            "pid": "2029",
            "disabled": true
        }, {
            "value": "4138014537_2035",
            "label": "京津大区/四部",
            "id": "2035",
            "pid": "2033",
            "disabled": true
        }, {
            "value": "4138014537_2036",
            "label": "京津大区/武清",
            "id": "2036",
            "pid": "2034",
            "disabled": true
        }, {
            "value": "4138014537_2038",
            "label": "销售部",
            "id": "2038",
            "pid": "2017",
            "disabled": true
        }, {
            "value": "4138014537_2039",
            "label": "数字化营销单元",
            "id": "2039",
            "pid": "2038",
            "disabled": true
        }, {
            "value": "4138014537_2040",
            "label": "城市群-数字化营销单元",
            "id": "2040",
            "pid": "2039",
            "disabled": true
        }, {
            "value": "4138014537_2041",
            "label": "城市-数字化营销单元",
            "id": "2041",
            "pid": "2040",
            "disabled": true
        }, {
            "value": "4138014537_3003",
            "label": "营销总部-安徽",
            "id": "3003",
            "pid": "1352",
            "disabled": false
        }, {
            "value": "4138014537_3004",
            "label": "营销总部-东北",
            "id": "3004",
            "pid": "1352",
            "disabled": false
        }, {
            "value": "4138014537_3005",
            "label": "营销总部-河南",
            "id": "3005",
            "pid": "1352",
            "disabled": false
        }, {
            "value": "4138014537_3006",
            "label": "营销总部-江苏",
            "id": "3006",
            "pid": "1352",
            "disabled": false
        }, {
            "value": "4138014537_3007",
            "label": "营销总部-晋冀蒙",
            "id": "3007",
            "pid": "1352",
            "disabled": false
        }, {
            "value": "4138014537_3008",
            "label": "营销总部-京津",
            "id": "3008",
            "pid": "1352",
            "disabled": false
        }, {
            "value": "4138014537_3009",
            "label": "营销总部-两湖",
            "id": "3009",
            "pid": "1352",
            "disabled": false
        }, {
            "value": "4138014537_3010",
            "label": "营销总部-闽赣",
            "id": "3010",
            "pid": "1352",
            "disabled": false
        }, {
            "value": "4138014537_3011",
            "label": "营销总部-山东",
            "id": "3011",
            "pid": "1352",
            "disabled": false
        }, {
            "value": "4138014537_3012",
            "label": "营销总部-西北",
            "id": "3012",
            "pid": "1352",
            "disabled": false
        }, {
            "value": "4138014537_3013",
            "label": "营销总部-粤海",
            "id": "3013",
            "pid": "1352",
            "disabled": false
        }, {
            "value": "4138014537_3014",
            "label": "营销总部-云贵广",
            "id": "3014",
            "pid": "1352",
            "disabled": false
        }, {
            "value": "4138014537_3015",
            "label": "营销总部-浙沪",
            "id": "3015",
            "pid": "1352",
            "disabled": false
        }, {
            "value": "4138014537_3016",
            "label": "营销总部-西南",
            "id": "3016",
            "pid": "1352",
            "disabled": false
        }, {
            "value": "4138014537_3017",
            "label": "销售区域-阜阳",
            "id": "3017",
            "pid": "3003",
            "disabled": false
        }, {
            "value": "4138014537_3018",
            "label": "销售区域-合肥",
            "id": "3018",
            "pid": "3003",
            "disabled": false
        }, {
            "value": "4138014537_3019",
            "label": "销售区域-芜湖",
            "id": "3019",
            "pid": "3003",
            "disabled": false
        }, {
            "value": "4138014537_3020",
            "label": "销售区域-沈阳",
            "id": "3020",
            "pid": "3004",
            "disabled": false
        }, {
            "value": "4138014537_3021",
            "label": "销售区域-大连",
            "id": "3021",
            "pid": "3004",
            "disabled": false
        }, {
            "value": "4138014537_3022",
            "label": "销售区域-哈尔滨",
            "id": "3022",
            "pid": "3004",
            "disabled": false
        }, {
            "value": "4138014537_3023",
            "label": "销售区域-锦州",
            "id": "3023",
            "pid": "3004",
            "disabled": false
        }, {
            "value": "4138014537_3024",
            "label": "销售区域-牡丹江",
            "id": "3024",
            "pid": "3004",
            "disabled": false
        }, {
            "value": "4138014537_3025",
            "label": "销售区域-长春",
            "id": "3025",
            "pid": "3004",
            "disabled": false
        }, {
            "value": "4138014537_3026",
            "label": "销售区域-郑州",
            "id": "3026",
            "pid": "3005",
            "disabled": false
        }, {
            "value": "4138014537_3027",
            "label": "销售区域-常州",
            "id": "3027",
            "pid": "3006",
            "disabled": false
        }, {
            "value": "4138014537_3028",
            "label": "销售区域-南京",
            "id": "3028",
            "pid": "3006",
            "disabled": false
        }, {
            "value": "4138014537_3029",
            "label": "销售区域-盐城",
            "id": "3029",
            "pid": "3006",
            "disabled": false
        }, {
            "value": "4138014537_3030",
            "label": "销售区域-徐州",
            "id": "3030",
            "pid": "3006",
            "disabled": false
        }, {
            "value": "4138014537_3031",
            "label": "销售区域-临汾",
            "id": "3031",
            "pid": "3007",
            "disabled": false
        }, {
            "value": "4138014537_3032",
            "label": "销售区域-内蒙",
            "id": "3032",
            "pid": "3007",
            "disabled": false
        }, {
            "value": "4138014537_3033",
            "label": "销售区域-石家庄",
            "id": "3033",
            "pid": "3007",
            "disabled": false
        }, {
            "value": "4138014537_3034",
            "label": "销售区域-太原",
            "id": "3034",
            "pid": "3007",
            "disabled": false
        }, {
            "value": "4138014537_3035",
            "label": "销售区域-银川",
            "id": "3035",
            "pid": "3007",
            "disabled": false
        }, {
            "value": "4138014537_3036",
            "label": "销售区域-北京",
            "id": "3036",
            "pid": "3008",
            "disabled": false
        }, {
            "value": "4138014537_3037",
            "label": "销售区域-唐山",
            "id": "3037",
            "pid": "3008",
            "disabled": false
        }, {
            "value": "4138014537_3038",
            "label": "销售区域-天津",
            "id": "3038",
            "pid": "3008",
            "disabled": false
        }, {
            "value": "4138014537_3039",
            "label": "销售区域-衡阳",
            "id": "3039",
            "pid": "3009",
            "disabled": false
        }, {
            "value": "4138014537_3040",
            "label": "销售区域-武汉",
            "id": "3040",
            "pid": "3009",
            "disabled": false
        }, {
            "value": "4138014537_3041",
            "label": "销售区域-襄阳",
            "id": "3041",
            "pid": "3009",
            "disabled": false
        }, {
            "value": "4138014537_3042",
            "label": "销售区域-宜昌",
            "id": "3042",
            "pid": "3009",
            "disabled": false
        }, {
            "value": "4138014537_3043",
            "label": "销售区域-长沙",
            "id": "3043",
            "pid": "3009",
            "disabled": false
        }, {
            "value": "4138014537_3044",
            "label": "销售区域-福州",
            "id": "3044",
            "pid": "3010",
            "disabled": false
        }, {
            "value": "4138014537_3045",
            "label": "销售区域-南昌",
            "id": "3045",
            "pid": "3010",
            "disabled": false
        }, {
            "value": "4138014537_3046",
            "label": "销售区域-厦门",
            "id": "3046",
            "pid": "3010",
            "disabled": false
        }, {
            "value": "4138014537_3047",
            "label": "销售区域-济南",
            "id": "3047",
            "pid": "3011",
            "disabled": false
        }, {
            "value": "4138014537_3048",
            "label": "销售区域-临沂",
            "id": "3048",
            "pid": "3011",
            "disabled": false
        }, {
            "value": "4138014537_3049",
            "label": "销售区域-青岛",
            "id": "3049",
            "pid": "3011",
            "disabled": false
        }, {
            "value": "4138014537_3050",
            "label": "销售区域-烟台",
            "id": "3050",
            "pid": "3011",
            "disabled": false
        }, {
            "value": "4138014537_3051",
            "label": "销售区域-汉中",
            "id": "3051",
            "pid": "3012",
            "disabled": false
        }, {
            "value": "4138014537_3052",
            "label": "销售区域-兰州",
            "id": "3052",
            "pid": "3012",
            "disabled": false
        }, {
            "value": "4138014537_3053",
            "label": "销售区域-西安",
            "id": "3053",
            "pid": "3012",
            "disabled": false
        }, {
            "value": "4138014537_3054",
            "label": "销售区域-西宁",
            "id": "3054",
            "pid": "3012",
            "disabled": false
        }, {
            "value": "4138014537_3055",
            "label": "销售区域-延安",
            "id": "3055",
            "pid": "3012",
            "disabled": false
        }, {
            "value": "4138014537_3056",
            "label": "销售区域-东莞",
            "id": "3056",
            "pid": "3013",
            "disabled": false
        }, {
            "value": "4138014537_3057",
            "label": "销售区域-佛山",
            "id": "3057",
            "pid": "3013",
            "disabled": false
        }, {
            "value": "4138014537_3058",
            "label": "销售区域-广州",
            "id": "3058",
            "pid": "3013",
            "disabled": false
        }, {
            "value": "4138014537_3059",
            "label": "销售区域-海南",
            "id": "3059",
            "pid": "3013",
            "disabled": false
        }, {
            "value": "4138014537_3060",
            "label": "销售区域-惠州",
            "id": "3060",
            "pid": "3013",
            "disabled": false
        }, {
            "value": "4138014537_3061",
            "label": "销售区域-中山",
            "id": "3061",
            "pid": "3013",
            "disabled": false
        }, {
            "value": "4138014537_3062",
            "label": "销售区域-南宁",
            "id": "3062",
            "pid": "3014",
            "disabled": false
        }, {
            "value": "4138014537_3063",
            "label": "销售区域-温州",
            "id": "3063",
            "pid": "3015",
            "disabled": false
        }, {
            "value": "4138014537_3064",
            "label": "销售区域-金华",
            "id": "3064",
            "pid": "3015",
            "disabled": false
        }, {
            "value": "4138014537_3065",
            "label": "销售区域-成都",
            "id": "3065",
            "pid": "3016",
            "disabled": false
        }, {
            "value": "4138014537_3066",
            "label": "销售区域-南充",
            "id": "3066",
            "pid": "3016",
            "disabled": false
        }, {
            "value": "4138014537_3067",
            "label": "销售区域-内江",
            "id": "3067",
            "pid": "3016",
            "disabled": false
        }, {
            "value": "4138014537_3068",
            "label": "销售区域-万州",
            "id": "3068",
            "pid": "3016",
            "disabled": false
        }, {
            "value": "4138014537_3069",
            "label": "销售区域-重庆",
            "id": "3069",
            "pid": "3016",
            "disabled": false
        }, {
            "value": "4138014537_3070",
            "label": "城市群-亳州市区",
            "id": "3070",
            "pid": "3017",
            "disabled": false
        }, {
            "value": "4138014537_3071",
            "label": "城市群-合肥传统",
            "id": "3071",
            "pid": "3018",
            "disabled": false
        }, {
            "value": "4138014537_3072",
            "label": "城市群-芜湖市区",
            "id": "3072",
            "pid": "3019",
            "disabled": false
        }, {
            "value": "4138014537_3073",
            "label": "城市群-抚顺",
            "id": "3073",
            "pid": "3020",
            "disabled": false
        }, {
            "value": "4138014537_3074",
            "label": "城市群-大连",
            "id": "3074",
            "pid": "3021",
            "disabled": false
        }, {
            "value": "4138014537_3075",
            "label": "城市群-哈尔滨",
            "id": "3075",
            "pid": "3022",
            "disabled": false
        }, {
            "value": "4138014537_3076",
            "label": "城市群-齐齐哈尔",
            "id": "3076",
            "pid": "3022",
            "disabled": false
        }, {
            "value": "4138014537_3077",
            "label": "城市群-锦州",
            "id": "3077",
            "pid": "3023",
            "disabled": false
        }, {
            "value": "4138014537_3078",
            "label": "城市群-鹤岗",
            "id": "3078",
            "pid": "3024",
            "disabled": false
        }, {
            "value": "4138014537_3079",
            "label": "城市群-佳木斯",
            "id": "3079",
            "pid": "3024",
            "disabled": false
        }, {
            "value": "4138014537_3080",
            "label": "城市群-长春",
            "id": "3080",
            "pid": "3025",
            "disabled": false
        }, {
            "value": "4138014537_3081",
            "label": "城市群-郑州市区",
            "id": "3081",
            "pid": "3026",
            "disabled": false
        }, {
            "value": "4138014537_3082",
            "label": "城市群-无锡",
            "id": "3082",
            "pid": "3027",
            "disabled": false
        }, {
            "value": "4138014537_3083",
            "label": "城市群-南京特渠",
            "id": "3083",
            "pid": "3028",
            "disabled": false
        }, {
            "value": "4138014537_3084",
            "label": "城市群-盐城特渠",
            "id": "3084",
            "pid": "3029",
            "disabled": false
        }, {
            "value": "4138014537_3085",
            "label": "城市群-徐州特渠",
            "id": "3085",
            "pid": "3030",
            "disabled": false
        }, {
            "value": "4138014537_3086",
            "label": "城市群-临汾市区",
            "id": "3086",
            "pid": "3031",
            "disabled": false
        }, {
            "value": "4138014537_3087",
            "label": "城市群-包头",
            "id": "3087",
            "pid": "3032",
            "disabled": false
        }, {
            "value": "4138014537_3088",
            "label": "城市群-大同",
            "id": "3088",
            "pid": "3032",
            "disabled": false
        }, {
            "value": "4138014537_3089",
            "label": "城市群-呼市市区",
            "id": "3089",
            "pid": "3032",
            "disabled": false
        }, {
            "value": "4138014537_3090",
            "label": "城市群-石家庄市区",
            "id": "3090",
            "pid": "3033",
            "disabled": false
        }, {
            "value": "4138014537_3091",
            "label": "城市群-邢台市区",
            "id": "3091",
            "pid": "3033",
            "disabled": false
        }, {
            "value": "4138014537_3092",
            "label": "城市群-太原地区",
            "id": "3092",
            "pid": "3034",
            "disabled": false
        }, {
            "value": "4138014537_3093",
            "label": "城市群-银川市区",
            "id": "3093",
            "pid": "3035",
            "disabled": false
        }, {
            "value": "4138014537_3094",
            "label": "城市群-北京便利商超",
            "id": "3094",
            "pid": "3036",
            "disabled": false
        }, {
            "value": "4138014537_3095",
            "label": "城市群-唐山市",
            "id": "3095",
            "pid": "3037",
            "disabled": false
        }, {
            "value": "4138014537_3096",
            "label": "城市群-分销东区",
            "id": "3096",
            "pid": "3038",
            "disabled": false
        }, {
            "value": "4138014537_3097",
            "label": "城市群-衡阳",
            "id": "3097",
            "pid": "3039",
            "disabled": false
        }, {
            "value": "4138014537_3098",
            "label": "城市群-江夏",
            "id": "3098",
            "pid": "3040",
            "disabled": false
        }, {
            "value": "4138014537_3099",
            "label": "城市群-襄阳",
            "id": "3099",
            "pid": "3041",
            "disabled": false
        }, {
            "value": "4138014537_3100",
            "label": "城市群-仙桃",
            "id": "3100",
            "pid": "3042",
            "disabled": false
        }, {
            "value": "4138014537_3101",
            "label": "城市群-长沙南区",
            "id": "3101",
            "pid": "3043",
            "disabled": false
        }, {
            "value": "4138014537_3102",
            "label": "城市群-福清地区",
            "id": "3102",
            "pid": "3044",
            "disabled": false
        }, {
            "value": "4138014537_3103",
            "label": "城市群-晋安地区",
            "id": "3103",
            "pid": "3044",
            "disabled": false
        }, {
            "value": "4138014537_3104",
            "label": "城市群-南昌城区",
            "id": "3104",
            "pid": "3045",
            "disabled": false
        }, {
            "value": "4138014537_3105",
            "label": "城市群-宜春地区",
            "id": "3105",
            "pid": "3045",
            "disabled": false
        }, {
            "value": "4138014537_3106",
            "label": "城市群-湖里地区",
            "id": "3106",
            "pid": "3046",
            "disabled": false
        }, {
            "value": "4138014537_3107",
            "label": "城市群-济南特渠",
            "id": "3107",
            "pid": "3047",
            "disabled": false
        }, {
            "value": "4138014537_3108",
            "label": "城市群-岚山区",
            "id": "3108",
            "pid": "3048",
            "disabled": false
        }, {
            "value": "4138014537_3109",
            "label": "城市群-青岛南区",
            "id": "3109",
            "pid": "3049",
            "disabled": false
        }, {
            "value": "4138014537_3110",
            "label": "城市群-烟台市区",
            "id": "3110",
            "pid": "3050",
            "disabled": false
        }, {
            "value": "4138014537_3111",
            "label": "城市群-汉中",
            "id": "3111",
            "pid": "3051",
            "disabled": false
        }, {
            "value": "4138014537_3112",
            "label": "城市群-兰州",
            "id": "3112",
            "pid": "3052",
            "disabled": false
        }, {
            "value": "4138014537_3113",
            "label": "城市群-天水",
            "id": "3113",
            "pid": "3052",
            "disabled": false
        }, {
            "value": "4138014537_3114",
            "label": "城市群-西安现代",
            "id": "3114",
            "pid": "3053",
            "disabled": false
        }, {
            "value": "4138014537_3115",
            "label": "城市群-西宁",
            "id": "3115",
            "pid": "3054",
            "disabled": false
        }, {
            "value": "4138014537_3116",
            "label": "城市群-榆林",
            "id": "3116",
            "pid": "3055",
            "disabled": false
        }, {
            "value": "4138014537_3117",
            "label": "城市群-东莞现代渠道",
            "id": "3117",
            "pid": "3056",
            "disabled": false
        }, {
            "value": "4138014537_3118",
            "label": "城市群-佛山西",
            "id": "3118",
            "pid": "3057",
            "disabled": false
        }, {
            "value": "4138014537_3119",
            "label": "城市群-广州番禺上",
            "id": "3119",
            "pid": "3058",
            "disabled": false
        }, {
            "value": "4138014537_3120",
            "label": "城市群-海口市区",
            "id": "3120",
            "pid": "3059",
            "disabled": false
        }, {
            "value": "4138014537_3121",
            "label": "城市群-惠州城区",
            "id": "3121",
            "pid": "3060",
            "disabled": false
        }, {
            "value": "4138014537_3122",
            "label": "城市群-湛江东",
            "id": "3122",
            "pid": "3061",
            "disabled": false
        }, {
            "value": "4138014537_3123",
            "label": "城市群-特渠",
            "id": "3123",
            "pid": "3062",
            "disabled": false
        }, {
            "value": "4138014537_3124",
            "label": "城市群-黄岩区",
            "id": "3124",
            "pid": "3063",
            "disabled": false
        }, {
            "value": "4138014537_3125",
            "label": "城市群-金衢区",
            "id": "3125",
            "pid": "3064",
            "disabled": false
        }, {
            "value": "4138014537_3126",
            "label": "城市群-成都现代渠道",
            "id": "3126",
            "pid": "3065",
            "disabled": false
        }, {
            "value": "4138014537_3127",
            "label": "城市群-电商",
            "id": "3127",
            "pid": "3065",
            "disabled": false
        }, {
            "value": "4138014537_3128",
            "label": "城市群-传统西区",
            "id": "3128",
            "pid": "3065",
            "disabled": false
        }, {
            "value": "4138014537_3129",
            "label": "城市群-顺庆",
            "id": "3129",
            "pid": "3066",
            "disabled": false
        }, {
            "value": "4138014537_3130",
            "label": "城市群-泸州",
            "id": "3130",
            "pid": "3067",
            "disabled": false
        }, {
            "value": "4138014537_3131",
            "label": "城市群-开州群",
            "id": "3131",
            "pid": "3068",
            "disabled": false
        }, {
            "value": "4138014537_3132",
            "label": "城市群-渝北群",
            "id": "3132",
            "pid": "3069",
            "disabled": false
        }, {
            "value": "4138014537_3133",
            "label": "城市群-主城群",
            "id": "3133",
            "pid": "3069",
            "disabled": false
        }, {
            "value": "4138014537_3134",
            "label": "城市-亳州市",
            "id": "3134",
            "pid": "3070",
            "disabled": false
        }, {
            "value": "4138014537_3135",
            "label": "城市-合肥市",
            "id": "3135",
            "pid": "3071",
            "disabled": false
        }, {
            "value": "4138014537_3136",
            "label": "城市-芜湖市",
            "id": "3136",
            "pid": "3072",
            "disabled": false
        }, {
            "value": "4138014537_3137",
            "label": "城市-抚顺市",
            "id": "3137",
            "pid": "3073",
            "disabled": false
        }, {
            "value": "4138014537_3138",
            "label": "城市-大连市",
            "id": "3138",
            "pid": "3074",
            "disabled": false
        }, {
            "value": "4138014537_3139",
            "label": "城市-哈尔滨",
            "id": "3139",
            "pid": "3075",
            "disabled": false
        }, {
            "value": "4138014537_3140",
            "label": "城市-齐齐哈尔",
            "id": "3140",
            "pid": "3076",
            "disabled": false
        }, {
            "value": "4138014537_3141",
            "label": "城市-锦州市",
            "id": "3141",
            "pid": "3077",
            "disabled": false
        }, {
            "value": "4138014537_3142",
            "label": "城市-鹤岗市",
            "id": "3142",
            "pid": "3078",
            "disabled": false
        }, {
            "value": "4138014537_3143",
            "label": "城市-佳木斯市",
            "id": "3143",
            "pid": "3079",
            "disabled": false
        }, {
            "value": "4138014537_3144",
            "label": "城市-长春市",
            "id": "3144",
            "pid": "3080",
            "disabled": false
        }, {
            "value": "4138014537_3145",
            "label": "城市-郑州市",
            "id": "3145",
            "pid": "3081",
            "disabled": false
        }, {
            "value": "4138014537_3146",
            "label": "城市-无锡",
            "id": "3146",
            "pid": "3082",
            "disabled": false
        }, {
            "value": "4138014537_3147",
            "label": "城市-南京",
            "id": "3147",
            "pid": "3083",
            "disabled": false
        }, {
            "value": "4138014537_3148",
            "label": "城市-盐城",
            "id": "3148",
            "pid": "3084",
            "disabled": false
        }, {
            "value": "4138014537_3149",
            "label": "城市-徐州市",
            "id": "3149",
            "pid": "3085",
            "disabled": false
        }, {
            "value": "4138014537_3150",
            "label": "城市-临汾市",
            "id": "3150",
            "pid": "3086",
            "disabled": false
        }, {
            "value": "4138014537_3151",
            "label": "城市-包头市",
            "id": "3151",
            "pid": "3087",
            "disabled": false
        }, {
            "value": "4138014537_3152",
            "label": "城市-大同市",
            "id": "3152",
            "pid": "3088",
            "disabled": false
        }, {
            "value": "4138014537_3153",
            "label": "城市-呼市",
            "id": "3153",
            "pid": "3089",
            "disabled": false
        }, {
            "value": "4138014537_3154",
            "label": "城市-石家庄市",
            "id": "3154",
            "pid": "3090",
            "disabled": false
        }, {
            "value": "4138014537_3155",
            "label": "城市-邢台市",
            "id": "3155",
            "pid": "3091",
            "disabled": false
        }, {
            "value": "4138014537_3156",
            "label": "城市-太原市",
            "id": "3156",
            "pid": "3092",
            "disabled": false
        }, {
            "value": "4138014537_3157",
            "label": "城市-银川市",
            "id": "3157",
            "pid": "3093",
            "disabled": false
        }, {
            "value": "4138014537_3158",
            "label": "城市-丰台",
            "id": "3158",
            "pid": "3094",
            "disabled": false
        }, {
            "value": "4138014537_3159",
            "label": "城市-开平",
            "id": "3159",
            "pid": "3095",
            "disabled": false
        }, {
            "value": "4138014537_3160",
            "label": "城市-天津东丽区",
            "id": "3160",
            "pid": "3096",
            "disabled": false
        }, {
            "value": "4138014537_3161",
            "label": "城市-衡阳县",
            "id": "3161",
            "pid": "3097",
            "disabled": false
        }, {
            "value": "4138014537_3162",
            "label": "城市-蔡甸",
            "id": "3162",
            "pid": "3098",
            "disabled": false
        }, {
            "value": "4138014537_3163",
            "label": "城市-襄阳市",
            "id": "3163",
            "pid": "3099",
            "disabled": false
        }, {
            "value": "4138014537_3164",
            "label": "城市-仙桃",
            "id": "3164",
            "pid": "3100",
            "disabled": false
        }, {
            "value": "4138014537_3165",
            "label": "城市-长沙县",
            "id": "3165",
            "pid": "3101",
            "disabled": false
        }, {
            "value": "4138014537_3166",
            "label": "城市-福清市",
            "id": "3166",
            "pid": "3102",
            "disabled": false
        }, {
            "value": "4138014537_3167",
            "label": "城市-仓山区",
            "id": "3167",
            "pid": "3103",
            "disabled": false
        }, {
            "value": "4138014537_3168",
            "label": "城市-南昌市",
            "id": "3168",
            "pid": "3104",
            "disabled": false
        }, {
            "value": "4138014537_3169",
            "label": "城市-宜春市",
            "id": "3169",
            "pid": "3105",
            "disabled": false
        }, {
            "value": "4138014537_3170",
            "label": "城市-湖里区",
            "id": "3170",
            "pid": "3106",
            "disabled": false
        }, {
            "value": "4138014537_3171",
            "label": "城市-济南",
            "id": "3171",
            "pid": "3107",
            "disabled": false
        }, {
            "value": "4138014537_3172",
            "label": "城市-临沂",
            "id": "3172",
            "pid": "3108",
            "disabled": false
        }, {
            "value": "4138014537_3173",
            "label": "城市-青岛市区",
            "id": "3173",
            "pid": "3109",
            "disabled": false
        }, {
            "value": "4138014537_3174",
            "label": "城市-烟台",
            "id": "3174",
            "pid": "3110",
            "disabled": false
        }, {
            "value": "4138014537_3175",
            "label": "城市-汉中",
            "id": "3175",
            "pid": "3111",
            "disabled": false
        }, {
            "value": "4138014537_3176",
            "label": "城市-兰州",
            "id": "3176",
            "pid": "3112",
            "disabled": false
        }, {
            "value": "4138014537_3177",
            "label": "城市-天水",
            "id": "3177",
            "pid": "3113",
            "disabled": false
        }, {
            "value": "4138014537_3178",
            "label": "城市-西安市区",
            "id": "3178",
            "pid": "3114",
            "disabled": false
        }, {
            "value": "4138014537_3179",
            "label": "城市-西宁",
            "id": "3179",
            "pid": "3115",
            "disabled": false
        }, {
            "value": "4138014537_3180",
            "label": "城市-榆林",
            "id": "3180",
            "pid": "3116",
            "disabled": false
        }, {
            "value": "4138014537_3181",
            "label": "城市-东莞市",
            "id": "3181",
            "pid": "3117",
            "disabled": false
        }, {
            "value": "4138014537_3182",
            "label": "城市-三水区",
            "id": "3182",
            "pid": "3118",
            "disabled": false
        }, {
            "value": "4138014537_3183",
            "label": "城市-广州市",
            "id": "3183",
            "pid": "3119",
            "disabled": false
        }, {
            "value": "4138014537_3184",
            "label": "城市-海口市",
            "id": "3184",
            "pid": "3120",
            "disabled": false
        }, {
            "value": "4138014537_3185",
            "label": "城市-惠州市",
            "id": "3185",
            "pid": "3121",
            "disabled": false
        }, {
            "value": "4138014537_3186",
            "label": "城市-湛江市",
            "id": "3186",
            "pid": "3122",
            "disabled": false
        }, {
            "value": "4138014537_3187",
            "label": "城市-南宁市",
            "id": "3187",
            "pid": "3123",
            "disabled": false
        }, {
            "value": "4138014537_3188",
            "label": "城市-路桥区",
            "id": "3188",
            "pid": "3124",
            "disabled": false
        }, {
            "value": "4138014537_3189",
            "label": "城市-兰溪市",
            "id": "3189",
            "pid": "3125",
            "disabled": false
        }, {
            "value": "4138014537_3190",
            "label": "城市-成都",
            "id": "3190",
            "pid": "3128",
            "disabled": false
        }, {
            "value": "4138014537_3191",
            "label": "城市-南充",
            "id": "3191",
            "pid": "3129",
            "disabled": false
        }, {
            "value": "4138014537_3192",
            "label": "城市-泸州",
            "id": "3192",
            "pid": "3130",
            "disabled": false
        }, {
            "value": "4138014537_3193",
            "label": "城市-开州区",
            "id": "3193",
            "pid": "3131",
            "disabled": false
        }, {
            "value": "4138014537_3194",
            "label": "城市-渝北区",
            "id": "3194",
            "pid": "3132",
            "disabled": false
        }, {
            "value": "4138014537_3195",
            "label": "城市-重庆",
            "id": "3195",
            "pid": "3133",
            "disabled": false
        }, {
            "value": "4138014537_3196",
            "label": "西南贵阳",
            "id": "3196",
            "pid": "2032",
            "disabled": true
        }, {
            "value": "4138014537_4005",
            "label": "销售区域-杭州",
            "id": "4005",
            "pid": "3015",
            "disabled": false
        }, {
            "value": "4138014537_4006",
            "label": "城市群-杭州市区",
            "id": "4006",
            "pid": "4005",
            "disabled": false
        }, {
            "value": "4138014537_4007",
            "label": "城市-杭州市",
            "id": "4007",
            "pid": "4006",
            "disabled": false
        }]
        console.log(data)
        
        function findAllParent(item, data) {
            const result = new Set();
            while(item.pid == '' || item.pid) {
                if(item.pid == "") {
                    result.add(item);
                    item = {};
                } else {
                    const parent = data.find(currItem => currItem.id === item.pid);
                    if(parent) {
                        result.add(item);
                        item = parent;
                    } else {
                        item = {};
                    }
                }
            }
            return Array.from(result)
        }
        function findAll(data) {
            let result = new Set();
            data.forEach(item => {
                if(!item.disabled) {
                    console.log(findAllParent(item, data))
                    findAllParent(item, data).forEach(i => {
                        result.add(i);
                    })
                }
            })
            return Array.from(result);
        }
        console.log(findAll(data))
    </script>
</body>

</html>